package com.ptsolusi.ceriacrudwicket.tool;


import org.apache.wicket.Application;
import org.apache.wicket.protocol.http.WebApplication;
import org.sakaiproject.user.api.UserDirectoryService;

import com.ptsolusi.ceriacrudwicket.logic.CustomerLogic;
import com.ptsolusi.ceriacrudwicket.logic.ExternalLogic;
import com.ptsolusi.ceriacrudwicket.logic.CeriacrudwicketLogic;
import com.ptsolusi.ceriacrudwicket.logic.OrderLogic;




public class CeriacrudwicketApplication extends WebApplication {    
    
	protected void init(){
		getResourceSettings().setThrowExceptionOnMissingResource(true);
		getMarkupSettings().setStripWicketTags(true);
	}
	
	public CeriacrudwicketApplication() {
	}
	
	//set to DEPLOYMENT for production
	public String getConfigurationType() { return Application.DEVELOPMENT; }
	
	//set homepage		
	public Class<Dispatcher> getHomePage() {
		return Dispatcher.class;
	}
	
	//expose Application itself
	public static CeriacrudwicketApplication get() {
		return (CeriacrudwicketApplication) Application.get();
	}

	private ExternalLogic externalLogic;
	public void setExternalLogic(ExternalLogic externalLogic) {
		this.externalLogic = externalLogic;
	}
	public ExternalLogic getExternalLogic() {
		return externalLogic;
	}

	private CeriacrudwicketLogic ceriacrudwicketLogic;
	public CeriacrudwicketLogic getCeriacrudwicketLogic() {
		return ceriacrudwicketLogic;
	}
	public void setCeriacrudwicketLogic(CeriacrudwicketLogic ceriacrudwicketLogic) {
		this.ceriacrudwicketLogic = ceriacrudwicketLogic;
	}
	
	private CustomerLogic customerLogic;
	public CustomerLogic getCustomerLogic() {
		return customerLogic;
	}

	public void setCustomerLogic(CustomerLogic customerLogic) {
		this.customerLogic = customerLogic;
	}
	
	private OrderLogic orderLogic;
	public OrderLogic getOrderLogic() {
		return orderLogic;
	}

	public void setOrderLogic(OrderLogic orderLogic) {
		this.orderLogic = orderLogic;
	}
	

}
